//
//  RedView.m
//  RCA的简单使用
//
//  Created by wsj on 16/8/14.
//  Copyright © 2016年 wsj. All rights reserved.
//

#import "RedView.h"
#import "ReactiveCocoa.h"
@implementation RedView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UIButton *button = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 50, 50)];
        button.backgroundColor = [UIColor redColor];
        button.tag = 100;
        [button addTarget:self action:@selector(buttonClick:) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:button];
    }
    return self;
}

@end
